package com.koron.css2.systemManage.mapper;

import com.koron.css2.systemManage.bean.OrgUserBean;
import com.koron.css2.systemManage.bean.OrgUserQueryBean;
import com.koron.css2.systemManage.bean.OtherUserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrgUserMapper {
	/*
	 * 查询列表数据
	 */
	public List<OrgUserBean> selectList(OrgUserQueryBean bean);

	public List<String> selectSysUserArea(@Param("account") String account);

	/*
	 * 查询领用人姓名
	 */
	public String selectReceiveName(String name);

	/*
	 * 通过登录账号查询数据
	 */
	public OrgUserBean selectByAccount(String account);
	public OrgUserBean selectByName(String name);
	public OrgUserBean selectByCode(String code);
	public OrgUserBean selectTempByAccount(String account);

	/*
	 * 插入表数据
	 */
	public int insert(OrgUserBean bean);

	/*
	 * 插入表数据
	 */
	public int insertOther(OtherUserBean bean);

	/*
	 * 修改表数据
	 */
	public int update(OrgUserBean bean);

	/*
	 * 查询已有账号
	 */
	public List<OrgUserBean> selectByAccounts(OrgUserQueryBean bean);

	/*
	 * 查询已有账号
	 */
	public List<OrgUserBean> selectByCodes(List<String> list);

	/*
	 * 删除通过用户账号
	 */
	int deleteByAccount(String account);

	List<String> getUserNameListByAccounts(@Param("userList") List<String> userList);
}
